package com.adhere.system.service;

import com.adhere.system.pojo.RbacUser;
import com.adhere.system.pojo.vo.PageVo;
import com.adhere.system.pojo.vo.UserDetailVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 如果考虑使用login_name进行hash作为code字段值，则没必要设置code的唯一性，否则需要设置 服务类
 * </p>
 *
 * @author 
 * @since 2021-04-02
 */
public interface IRbacUserService extends IService<RbacUser> {

    PageVo<RbacUser> getUserListByPage(Integer currentPage, Integer pageSize, String loginName, String roleId);

    void addUser(RbacUser user);

    UserDetailVo getUserDetailByUserName(String loginName);

    List<String> getUserListByRoleCode(String roleCode);

    UserDetailVo getUserDetailByUserCode(String userCode);

    List<RbacUser> getUserWithAdmin();
}
